<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org/">
<head>
    <meta charset="UTF-8">
    <title>核酸检测情况</title>
</head>
<body>
<form method="get" th:action="@{'/admin/abnormal'}">
    <!--th:action相当于action-->
    <input type="submit" value="查询">
</form>
<table cellspacing="1">
    <thead>
    <tr>
        <th>核酸编号</th>
        <th>核酸结果</th>
        <th>是否出现发热症状</th>
        <th>检测时间</th>
        <th>是否隔离</th>
        <th>隔离宿舍号</th>
        <th>隔离宿舍楼</th>
    </tr>
    </thead>

    <tbody th:each="test:${testList}">
    <tr>
        <td th:text="${test.id}"></td>
        <td th:text="${test.result}"></td>
        <td th:text="${test.ishealth}"></td>
        <td th:text="${test.time}"></td>
        <td th:text="${test.quarantine}"></td>
        <td th:text="${test.dormitory}"></td>
        <td th:text="${test.floor}"></td>

        <td>
            <a th:href="@{/login/select(id=${test.id})}">查看详情</a>
        </td>
    </tr>
    </tbody>
</table>
</body>
</html>